<?php

namespace app\common\dict;

class TaskTypeDict
{

    const SYSTEM = 1;


    const MANUAL = 2;


    const DOWNLOAD = 3;


    public static function getDict(): array
    {
        return [
            self::SYSTEM => '系统任务',
            self::MANUAL => '手动任务',
            self::DOWNLOAD => '下载任务',
        ];
    }


    public static function getDictValue(int $key): string
    {
        $dict = self::getDict();
        return $dict[$key] ?? '';
    }

}